﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;

namespace TomNet.IMSC.Model.DbModels.Account
{
    /// <summary>
    /// 费用流水表
    /// </summary>
    public class ExpensesRunnings : EntityBase<int>
    {
        /// <summary>
        /// 模块ID
        /// </summary>
        public int ModuleID { get; set; }
        /// <summary>
        /// 流水ID
        /// </summary>
        public int RunningsID { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Amount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态  1待审核    2已审核    3审核未通过    4已出款
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime ConfirmTime { get; set; }
        /// <summary>
        /// 确认操作员
        /// </summary>
        public int ConfirmStaffID { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime AuditingTime { get; set; }
        /// <summary>
        /// 审核操作员
        /// </summary>
        public int AuditingStaffID { get; set; }
        /// <summary>
        /// 审核说明
        /// </summary>
        public string AuditingRemark { get; set; }
        /// <summary>
        /// 出款时间
        /// </summary>
        public DateTime RemittanceTime { get; set; }
        /// <summary>
        /// 出款人
        /// </summary>
        public int RemittanceStaffID { get; set; }
        /// <summary>
        /// 收款人银行
        /// </summary>
        [StringLength(255)]
        public string RemittanceBank { get; set; }
        /// <summary>
        /// 收款人姓名
        /// </summary>
        [StringLength(50)]
        public string RemittanceName { get; set; }
        /// <summary>
        /// 收款人帐号
        /// </summary>
        [StringLength(50)]
        public string RemittanceAccount { get; set; }

    }
}
